﻿using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities;

namespace EcoSystem
{
    public class DictionaryValue : AggregateRoot<Guid>
    {
        /// <summary>
        /// 类别ID
        /// </summary>
        public Guid ItemId { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        [MaxLength(128)]
        public string Description { get; set; }

        /// <summary>
        /// 字典名称
        /// </summary>
        [MaxLength(128)]
        public string Name { get; set; }

        /// <summary>
        /// 字典值
        /// </summary>
        [MaxLength(512)]
        public string Value { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Status { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        public short SortIndex { get; set; }
    }
}
